73 WDT_A_hold(WDT_A_BASE);
82 UCS_turnOnLFXT1(UCS_XT1_DRIVE_3,
87 currentTime.Seconds = 0x00;
88 currentTime.Minutes = 0x26;
89 currentTime.Hours = 0x13;
90 currentTime.DayOfWeek = 0x03;
91 currentTime.DayOfMonth = 0x20;
92 currentTime.Month = 0x07;
93 currentTime.Year = 0x2011;
101 RTC_B_initCalendar(RTC_B_BASE,
107 RTC_B_configureCalendarAlarmParam
param = {0};
108 param.minutesAlarm = 0x00;
109 param.hoursAlarm = 0x17;
110 param.dayOfWeekAlarm = RTC_B_ALARMCONDITION_OFF;
111 param.dayOfMonthAlarm = 0x05;
112 RTC_B_configureCalendarAlarm(RTC_B_BASE, &
param);
115 RTC_B_setCalendarEvent(RTC_B_BASE,
116 RTC_B_CALENDAREVENT_MINUTECHANGE);
121 RTC_B_clearInterrupt(RTC_B_BASE,
122 RTCRDYIFG + RTCTEVIFG + RTCAIFG);
123 RTC_B_enableInterrupt(RTC_B_BASE,
124 RTCRDYIE + RTCTEVIE + RTCAIE);
127 RTC_B_startClock(RTC_B_BASE);
130 __bis_SR_register(LPM0_bits + GIE);
134 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
135 #pragma vector=RTC_VECTOR
137 #elif defined(__GNUC__)
138 __attribute__((interrupt(RTC_VECTOR)))
142 switch (__even_in_range(RTCIV,16)){
146 GPIO_toggleOutputOnPin(
155 newTime = RTC_B_getCalendarTime(RTC_B_BASE);
MPU_initThreeSegmentsParam param
volatile Calendar newTime